import Item from "./components/Item/Item"
import React from "react"

// export default function App() {
//   return (
//     <ul style={{ backgroundColor: "skyblue" }}>
//       {list.map((data) => (
//         <Item key={data.id} xxx={data}></Item>
//       ))}
//     </ul>
//   )
// }

function Fn(){
  return <h1>123</h1>
}

export default class App extends React.Component {
  data = {
    list: [
      { id: 1, name: "jack", content: "rose, you jump i jump" },
      { id: 2, name: "rose", content: "jack, you see you, one day day" },
      { id: 3, name: "tom", content: "jack...." },
    ],
  }

  render() {
    return (
      <div><Item list={this.data.list} xxx={Fn}></Item></div>
    )
  }
}
